<?php

	require_once("client.php");				//check if the client.php is already included; if not included, include and evaluate client.php

	class SearchClientController{				//a class that receives POST from the input field and decides what to do with it
		var $search;
		
		function SubmitClient(){
			$this->search = $_REQUEST['search'];
		}
		
		function searchClient(){
			$client = new Client();
			$client->search($this->search);	
		}
	}
	
	$searchClientController = new SearchClientController;
	$searchClientController->SubmitClient();
	$searchClientController->searchClient();

?>